package com.neustudy.content.api;

import com.neustudy.content.model.dto.CourseCategoryTreeDto;
import com.neustudy.content.service.CourseCategoryService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author WKX
 * @version 1.0
 * @describe todo
 * @create: 2024-11-06 17:11
 */
@Api(value = "课程类型管理接口",tags = "课程类型管理接口")
@Slf4j
@RestController
public class CourseCategoryController {

    @Autowired
    CourseCategoryService courseCategoryService;

    @GetMapping("/course-category/tree-nodes")
    public List<CourseCategoryTreeDto> queryTreeNodes() {
        return courseCategoryService.queryTreeNodes("1");
    }
}
